<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Document</title>
</head>
<body>
  <div id="container">
    <div>11111</div>
    <div>22222</div>
    <p>ppppp</p>
    <span>span</span>
  </div>
  <div>hello</div>
  <div id="main">world</div>
  <div>heima</div>
  <p>heihei</p>
  <span>111</span>
  <script>
    var container = document.getElementById('container');
    var divs = container.getElementsByTagName('div');
    console.log(divs);
  </script>
</body>
</html>
